<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>discreteHSlider.mxml</title>
<link rel="stylesheet" type="text/css" href="../../../../../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
<span class="MXMLComponent_Tag">&lt;mx:Canvas</span><span class="MXMLDefault_Text"> width=&quot;</span><span class="MXMLString">80%</span><span class="MXMLDefault_Text">&quot;
           paddingBottom=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot; paddingLeft=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot; paddingRight=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot; paddingTop=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;
           xmlns:mx=&quot;</span><span class="MXMLString">http://www.adobe.com/2006/mxml</span><span class="MXMLDefault_Text">&quot;
           xmlns:qs=&quot;</span><span class="MXMLString">org.quantitativesustainability.controls.*</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>

    <span class="MXMLSpecial_Tag">&lt;mx:Script</span><span class="MXMLDefault_Text"> source=&apos;</span><span class="MXMLString">discreteHSliderScript.as</span><span class="MXMLDefault_Text">&apos;</span><span class="MXMLSpecial_Tag">/&gt;</span>

    <span class="MXMLSpecial_Tag">&lt;mx:Metadata&gt;</span>
        <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptMetadata">Event</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">name</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&quot;enableChanged&quot;</span>, <span class="ActionScriptDefault_Text">type</span><span class="ActionScriptOperator">=</span><span class="ActionScriptString">&quot;org.quantitativesustainability.events.EnableChangeEvent&quot;</span><span class="ActionScriptBracket/Brace">)]</span>
    <span class="MXMLSpecial_Tag">&lt;/mx:Metadata&gt;</span>

    <span class="MXMLComponent_Tag">&lt;mx:HBox</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">captionBox</span><span class="MXMLDefault_Text">&quot; horizontalAlign=&quot;</span><span class="MXMLString">center</span><span class="MXMLDefault_Text">&quot; horizontalCenter=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">decrement</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">decrement</span><span class="MXMLDefault_Text">&quot; fontStyle=&quot;</span><span class="MXMLString">italic</span><span class="MXMLDefault_Text">&quot;
                       fontSize=&quot;</span><span class="MXMLString">8</span><span class="MXMLDefault_Text">&quot; click=&quot;</span><span class="ActionScriptDefault_Text">incAIndex</span><span class="ActionScriptOperator">=-</span>1;<span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComment">&lt;!--</span><span class="MXMLComment">click=&quot;incAIndex(-1); updateSlider(); updateData();&quot;/&gt;</span><span class="MXMLComment">--&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Text</span><span class="MXMLDefault_Text"> id=&apos;</span><span class="MXMLString">caption</span><span class="MXMLDefault_Text">&apos;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:LinkButton</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">increment</span><span class="MXMLDefault_Text">&quot; label=&quot;</span><span class="MXMLString">increment</span><span class="MXMLDefault_Text">&quot; fontStyle=&quot;</span><span class="MXMLString">italic</span><span class="MXMLDefault_Text">&quot;
                       fontSize=&quot;</span><span class="MXMLString">8</span><span class="MXMLDefault_Text">&quot; click=&quot;</span><span class="ActionScriptDefault_Text">incAIndex</span><span class="ActionScriptOperator">=</span>1;<span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComment">&lt;!--</span><span class="MXMLComment">click=&quot;incAIndex(+1); updateSlider(); updateData();&quot;/&gt;</span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:HBox&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:VBox</span><span class="MXMLDefault_Text"> width=&quot;</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">&quot; horizontalAlign=&quot;</span><span class="MXMLString">center</span><span class="MXMLDefault_Text">&quot; horizontalCenter=&quot;</span><span class="MXMLString">0</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:HSlider</span><span class="MXMLDefault_Text"> id=&quot;</span><span class="MXMLString">hslider</span><span class="MXMLDefault_Text">&quot; width=&quot;</span><span class="MXMLString">90%</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;mx:Label</span><span class="MXMLDefault_Text"> id=&apos;</span><span class="MXMLString">hsliderLabel</span><span class="MXMLDefault_Text">&apos; htmlText=&quot;</span><span class="MXMLDefault_Text">&quot;</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:VBox&gt;</span>
<span class="MXMLComponent_Tag">&lt;/mx:Canvas&gt;</span></pre></body>
</html>
